package com.personal.dao;

import com.personal.domain.ParkArea;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @projectName: smartCommunity_springboot
 * @package: com.personal.dao
 * @className: ParkAreaDao
 * @author: bong~
 * @description: TODO
 * @date: 2023/8/11 14:22
 * @version: 1.0
 */

@Mapper
public interface ParkAreaDao {


    @Select("select * from parkarea")
    List<ParkArea> selectAll();

    @Select("select * from parkarea where parentId=#{parentId}")
    List<ParkArea> selectByParentId(Integer parentId);
}
